package com.free.web.action;

import org.apache.struts2.convention.annotation.Action;
import org.directwebremoting.annotations.RemoteMethod;
import org.directwebremoting.annotations.RemoteProxy;
import org.springframework.beans.factory.annotation.Autowired;

import com.free.entity.UserEntity;
import com.free.logic.service.impl.IUserService;

//@Controller
//@Scope("prototype")
@RemoteProxy(name="login")
public class LoginAction extends BaseAction{
	@Autowired
	private IUserService userService;
	//@Action(value = "dwrTest")
	@RemoteMethod
	public void login() {
		System.out.println("logon");
		/*UserEntity user = new UserEntity();
		user.setUname("test");
		System.out.println("userService:"+userService);
		userService.saveUser(user);*/
		//userService.findUser(dynamicForm);
	}
	
	@Action(value="xx")
	public void tt()
	{
		System.out.println("xx");
		UserEntity user = new UserEntity();
		user.setUname("test");
		System.out.println("userService:"+userService);
		//userService.saveUser(user);
	}
}
